package com.bwda.dsrs.systemservice.domain.vo.role;

import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author youzhen
 */
@Data
@ApiModel(description = "角色表")
public class RoleVo {

	@ApiModelProperty(value = "ID主键", required = true)
	private Integer id;

	@ApiModelProperty(value = "角色编码")
	private String roleCode;

	@ApiModelProperty(value = "角色名称")
	private String roleName;

	@ApiModelProperty(value = "0内置1自定义")
	private Integer isDefault;

	@ApiModelProperty(value = "数据范围（1：所有数据；2：所在机构及以下数据；3：所在机构数据；4：仅本人数据）")
	private Integer dataScope;

	@ApiModelProperty(value = "0不启用 1启用")
	private Integer status;

	@ApiModelProperty(value = "创建时间")
	private Date createTime;

	@ApiModelProperty(value = "备注")
	private String remark;

	@ApiModelProperty(value = "0未删除 1已删除")
	private Integer delFlag;

	@ApiModelProperty(value = "0展示 1不展示")
	private Integer showFlag;

	@ApiModelProperty(value = "0授权 1不授权")
	private Integer authorizeFlag;


	@ApiModelProperty(value = "0未删除 1已删除")
	private Integer roleState;

	@ApiModelProperty(value = "角色绑定的菜单集合")
	private List<String> menuIdList;

	public Date getCreateTime() {
		if (createTime != null){
			return (Date) createTime.clone();
		}

		return null;
	}

	public void setCreateTime(Date createTime) {
		if (createTime != null){
			this.createTime = (Date) createTime.clone();
		}
	}
}